home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / qdbus < prev    next >
Encoding:
Text File  |  2010-11-16  |  487 b   |  24 lines

  1. # Qt qdbus, dcop completion
  2.  
  3. have qdbus || have dcop &&
  4. _qdbus()
  5. {
  6.     local cur
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur
  10.  
  11.     [ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1]
  12.     COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} 2>/dev/null | \
  13.         sed s/\(.*\)// )' -- "$cur" ) )
  14. } &&
  15. complete -F _qdbus qdbus dcop
  16.  
  17. # Local variables:
  18. # mode: shell-script
  19. # sh-basic-offset: 4
  20. # sh-indent-comment: t
  21. # indent-tabs-mode: nil
  22. # End:
  23. # ex: ts=4 sw=4 et filetype=sh
  24.